home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / utils / sound / players / unix / rplay / makefile < prev    next >
Encoding:
Makefile  |  1992-10-23  |  1.6 KB  |  67 lines

  1. #
  2. # Makefile for rplay
  3. #
  4.  
  5. #
  6. # Makefile options:
  7. # RPLAY_CONF - rplay configuration file
  8. # BIN_DIR - directory to place rplay binaries
  9. # LIB_DIR - directory to place the rplay library
  10. # INCLUDE_DIR - directory to place the rplay include file
  11. # FIND_SOUNDS - shell command to find all your sounds
  12. # DEFS - defines for the compiler, options are:
  13. #        INETD - create code with inetd support
  14. #        RPLAY_CONF - same as above RPLAY_CONF
  15. #
  16.  
  17. RPLAY_CONF=    /usr/local/etc/rplay.conf
  18. BIN_DIR=    /usr/local/bin
  19. LIB_DIR=    /usr/local/lib
  20. INCLUDE_DIR=    /usr/local/include
  21. FIND_SOUNDS=    find '*.au'
  22.  
  23. DEFS=        -DINETD -DRPLAY_CONF=\"$(RPLAY_CONF)\"
  24. #DEFS=        -DRPLAY_CONF=\"$(RPLAY_CONF)\"
  25. CFLAGS=        -O $(DEFS)
  26. CC=        cc
  27.  
  28. RPLAY=        rplay
  29. RPLAY_OBJS=    rplay.o
  30. RPLAY_LIBS=    -L. -lrplay
  31. RPLAYD=        rplayd
  32. RPLAYD_OBJS=    rplayd.o libst.o
  33. RPLAYD_LIBS=    -L. -lrplay -llwp
  34. LIBRPLAY=    librplay.a
  35. LIBRPLAY_OBJS=    librplay.o
  36.  
  37. all:        $(LIBRPLAY) $(RPLAY) $(RPLAYD)
  38.  
  39. world:        all install rplay.conf
  40.  
  41. $(RPLAY):    $(RPLAY_OBJS) $(LIBRPLAY)
  42.         $(CC) $(CFLAGS) $(RPLAY_OBJS) -o $@ $(RPLAY_LIBS)
  43.  
  44. $(RPLAYD):    $(RPLAYD_OBJS) $(LIBRPLAY)
  45.         $(CC) $(CFLAGS) $(RPLAYD_OBJS) -o $@ $(RPLAYD_LIBS)
  46.  
  47. $(LIBRPLAY):    $(LIBRPLAY_OBJS)
  48.         ar rcv $@ $(LIBRPLAY_OBJS)
  49.         ranlib $@
  50.  
  51. rplay.conf:    
  52.         $(FIND_SOUNDS) > $(RPLAY_CONF)
  53.         
  54. install:    $(RPLAY) $(RPLAYD) $(LIBRPLAY)
  55.         cp rplay rplayd $(BIN_DIR)
  56.         cp librplay.a $(LIB_DIR)
  57.         cp rplay.h $(INCLUDE_DIR)
  58.         ranlib $(LIB_DIR)/librplay.a
  59.  
  60. clean:
  61.         rm -f $(RPLAY_OBJS) $(RPLAYD_OBJS) $(LIBRPLAY_OBJS) core a.out
  62.  
  63. shar:
  64.         shar -o rplay rplay.c rplayd.c librplay.c rplay.h version.h \
  65.         libst.c libst.h Makefile README INSTALL WARNING
  66.